import React from 'react'
import { getBanner } from './services'
import { useRequest } from './hooks/useRequest'

const App = () => {
  const { data,loading,error,run } = useRequest(getBanner)
  console.log(data?.banners)
  return (
    <div>
        {data?.banners.map(item => {
          return <div key={item.imageUrl}>
            <img src={item.imageUrl} alt=""/>
          </div>
        })}

    </div>
  )
}

export default App
